About BufferedWindows
version: 1.0.0
last modified: August 30, 2000
With MacOS X all windows are, by default, double buffered.  Although you no longer need to maintain your own offscreen buffer for drawing(notice how this app draws directly to the window), it can cause problems with animations not being refreshed.  To solve this you can call QDFlushPortBuffer() to flush the buffer of your window to the screen for each frame of the animation.  This sample demonstrates this using two buffered windows, one whose buffer is flushed after each frame and one whose buffer is not.  You should notice that the window who is not being flushed, only updates while the mouse is moving or while there is some user interaction, if you stop then the animation will stop but the window whose buffer is being flushed continues to update.  If you prefer you can disable double buffering for a window by specifying the kWindowNoBufferingAttribute when you create the window;  However, with buffering disabled you must handle redrawing the window yourself.
Building the Code
The code was built using a standard Carbon Application(nib Based) project in project builder.
Restrictions
none.
Other Code Notes
none.
Known Bugs
none
Possible Future Enhancements
none
Other Sources of Reference
none.
Version History
8/29/00-Created
Credits
Karl Groethe
Apple Developer Technical Support